home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Presentations / Presentations ’91 / DAL Files / DALtool 4⁄19 (System 6.x) / CL1ERR.H < prev    next >
Text File  |  1990-11-12  |  11KB  |  204 lines

  1. /*
  2.     Copyright © 1986, 1987, 1989, 1989, 1990 Network Innovations Corporation.
  3.     All Rights Reserved.
  4.     CL/1 is a trademark of Network Innovations Corporation.
  5.     This software may not be used without permission from
  6.     Network Innovations Corporation.
  7. */
  8.  
  9. /* SUCCESS and WARNING status codes */
  10.  
  11. # define C_OK        0L    /* successful completion */
  12. # define C_NOMORE    100L    /* no more data */
  13. # define C_ISNULL    1L    /* NULL data */
  14.  
  15. /* ERROR status codes compatible with DB2 */
  16.  
  17. #define CECHAR        -7L    /* illegal character in statement */
  18. #define CEQUOTE        -10L    /* unterminated string constant */
  19. #define CESYNTAX    -84L    /* unacceptable statement */
  20. #define CECOMPLEX    -101L    /* stmt too long or complex */
  21. #define CENUMLIT    -103L    /* invalid numeric literal */
  22. #define CETOKEN        -104L    /* invalid token */
  23. #define CESTRLIT    -105L    /* invalid string literal */
  24. #define CENAMLEN    -107L    /* identifier name too long */
  25. #define CECLAUSE    -109L    /* clause not permitted */
  26. #define CEFCNARG    -111L    /* fcn without column name */
  27. #define CEINVARG    -112L    /* nested fcns or other illegal args */
  28. #define CENAMINV    -113L    /* invalid identifier name */
  29. #define CEPRDINV    -115L    /* invalid predicate */
  30. #define CEINSCNT    -117L    /* insert cols/vals count mismatch */
  31. #define CESRCDST    -118L    /* same tbl is src & dest in update */
  32. #define CEHAVCOL    -119L    /* HAVING col not in GROUP BY clause */
  33. #define CEINVREF    -120L    /* where/set references fcn or group col */
  34. #define CEDUPCOL    -121L    /* dup col name in insert/update list */
  35. #define CESELGRP    -122L    /* select/group/agg clause disagreement */
  36. #define CESRTNUM    -125L    /* illegal colnr in ORDER BY clause */
  37. #define CEUPDSRT    -126L    /* UPDATE & ORDER BY clauses conflict */
  38. #define CEDISTINCT    -127L    /* too many DISTINCT keywords */
  39. #define CEUSENUL    -128L    /* invalid use of NULL in predicate */
  40. #define CETBLCNT    -129L    /* too many table names */
  41. #define CELIKE        -131L    /* LIKE with incompatible data types */
  42. #define CELIKARG    -132L    /* LIKE has wrong arguments */
  43. #define CECORHAV    -133L    /* fcn on correlated ref in HAVING clause */
  44. #define CEVARBIN    -134L    /* illegal opn on long unstructured data */
  45. #define CESRTLEN    -136L    /* too many/too long SORT/GROUP BY cols */
  46. #define CENUPVIEW    -150L    /* update of non-updateable view */
  47. #define CENUPCOL    -151L    /* update of non-updateable column */
  48. #define CEGRPVIEW    -155L    /* FROM clause includes grouped view */
  49. #define CEINVVIEW    -161L    /* update violates VIEW constraints */
  50. #define CEKEYWORD    -199L    /* invalid use of keyword */
  51. #define CEAMBIG        -203L    /* ambiguous column reference */
  52. #define CEUDFIDN    -204L    /* ref to undefined identifier */
  53. #define CECOLTBL    -205L    /* unknown column for table */
  54. #define CEUDFCOL    -206L    /* unknown column name for any table */
  55. #define CECOLSRT    -208L    /* unknown col ref in ORDER BY clause */
  56. #define CEVARTYP    -303L    /* invalid data type for variable */
  57. #define CEVARRNG    -304L    /* data out of range for data type */
  58. #define CEUDFVAR    -312L    /* undefined/unusable variable name */
  59. #define CEOPTYP        -401L    /* incompatible operands for operator */
  60. #define CENUMCHR    -402L    /* numeric operation on character data */
  61. #define CECOLLEN    -404L    /* string too long for column on upd/ins */
  62. #define CELITRNG    -405L    /* numeric literal out of range */
  63. #define CEVALRNG    -406L    /* calculated value out of range */
  64. #define CENONNUL    -407L    /* NULL assigned to NON-NULL column */
  65. #define CECOLTYP    -408L    /* upd/ins data has invalid type for column */
  66. #define CECNTOP        -409L    /* invalid operand of COUNT() fcn */
  67. #define CEFLTLEN    -410L    /* floating point literal too long */
  68. #define CEUSER        -411L    /* keyword USER improperly used */
  69. #define CESUBCOL    -412L    /* illegal multi-column subquery */
  70. #define CECNVOFL    -413L    /* numeric overflow during type conversion */
  71. #define CELIKNUM    -414L    /* LIKE on numeric column */
  72. #define CESCALE        -419L    /* negative scale on decimal division */
  73. #define CECRSNOP    -501L    /* cursor (or other object) not open */
  74. #define CECRSOPN    -502L    /* cursor (or other object) already open */
  75. #define CEUPDLST    -503L    /* column not in FOR UPDATE list */
  76. #define CEUDFCRS     -504L     /*specified cursor is not defined for this operation*/
  77. #define CENOT2OPEN    -507L    /* cursor (upd/del) not open */
  78. #define CECURROW    -508L    /* cursor not positioned on a row */
  79. #define CECRSNUP    -510L    /* non-updateable cursor */
  80. #define CETBLNUP    -511L    /* non-updateable table */
  81. #define CEOBJPRV    -551L    /* privilege violation on object */
  82. #define CEOPNPRV    -552L    /* privilege violation for operation */
  83. #define CEEXISTS    -601L    /* object of given name already exists */
  84. #define CEOFLOW        -802L    /* arithmetic overflow */
  85. #define CEDUPROW    -803L    /* ins/upd would create duplicate row */
  86. #define CESUBCNT    -811L    /* subquery produces multi-row result */
  87. #define CEGRPHAV    -815L    /* illegal GROUP/HAVING in subquery */
  88. #define CECOLCNT    -840L    /* too many items in select/insert list */
  89. #define CESYSTEM    -901L    /* non-fatal system error */
  90. #define CEFATAL        -904L    /* fatal system error */
  91. #define CETXROLL    -911L    /* txn rolled back, deadlock/timeout */
  92. #define CETXFAIL    -913L    /* txn failed, deadlock/timeout */
  93. #define CECONAUTH    -922L    /* database open authorization failure */
  94. #define CENOCON        -923L    /* database not opened */
  95. #define CEDB2CON    -924L    /* DB2 internal connection error */
  96.  
  97. /* CL/1 syntax errors */
  98.  
  99. #define CECOMMENT  -10001L /* unterminated comment */
  100. #define CEDATLIT   -10002L /* invalid date/time literal */
  101. #define CENOTHERE  -10003L /* language construct not allowed in that context */
  102. #define CEUNDEF    -10004L /* undefined identifier */
  103. #define CEEXP      -10005L /* (some) token expected */
  104. #define CEUNEXP    -10006L /* (some) token unexpected */
  105. #define CESYN      -10007L /* syntax error */
  106. #define CEMISNG    -10008L /* (some) token missing */
  107. #define CEINVID    -10009L /* invalid CL/1 ident */
  108. #define CEILLOP    -10010L /* invalid CL/1 operator use */
  109. #define CEREDCL    -10011L /* illegal redeclaration of ident */
  110. #define CESEM      -10012L /* sementic error, construct does not make sense */
  111. #define CEILLASN   -10013L /* illegal assignment to CL/1 variable */
  112. #define CEILLPRT   -10014L /* printing not allowed now */
  113. #define CEILLTYP   -10015L /* illegal type for operation or type mismatch */
  114. #define CENOVAL    -10016L /* variable has no value yet */
  115. #define CERECUR    -10017L /* recursion not allowed here */
  116. #define CEPCNT     -10018L /* function call parameter count is wrong */
  117. #define CERCNT     -10019L /* function call return item count is wrong */
  118. #define CENOQRY    -10020L /* no query associated with (default) cursor */
  119. #define CENOFTCH   -10021L /* no fetch done yet (no current row) */
  120. #define CEMXFTCH   -10022L /* fetch beyond last (no current row) */
  121. #define CEFTCHOP   -10023L /* bad fetch op for fetch mode */
  122. #define CENOTXNS   -10024L /* DB does not support transactions */
  123. #define CEPRECIS   -10025L /* loss of precision on conversion */
  124. #define CEUFLOW       -10026L /* conversion resulted in underflow */
  125. #define CECOLVAL   -10027L /* insert/update value illegal for col */
  126.  
  127.  
  128. /* CL/1 operational errors -- object manipulation */
  129.  
  130. #define CEOPEN        -10101L    /* error opening object */
  131. #define CECLOSE        -10102L    /* error closing object */
  132. #define CERENAME    -10103L /* error renaming object */
  133. #define CEDELETE    -10104L /* error deleting object */
  134. #define CELOCK        -10105L    /* object locked by another user */
  135. #define CEISOPEN    -10106L    /* object is already open */
  136. #define CENOTOPEN    -10107L    /* object is not open */
  137. #define CEFILEIO    -10108L    /* file i/o error on access */
  138. #define CEPRTIO        -10109L    /* printer i/o error */
  139. #define CENETIO        -10110L    /* network i/o error */
  140. #define CEPROTOCOL    -10111L /* protocol not supported */
  141. #define CENOMEM        -10112L    /* insufficient memory for operation */
  142. #define CEBREAK        -10113L    /* break request interrupted operation */
  143. #define CEUNIMPL    -10114L    /* unimplemented feature/function */
  144. #define CETOOMANY    -10115L    /* object/item maximum exceeded */
  145. #define CECOPY        -10116L    /* error copying object */
  146. #define CECREATE    -10117L    /* error creating object */
  147. #define CELOGIN        -10118L    /* invalid login parameters */
  148. #define CETIMOUT    -10119L    /* timeout on request */
  149.  
  150. #define CEPARM          -10150L /* illegal parameter */
  151. #define CEFORK          -10151L /* unable to run subprocess */
  152.  
  153.  
  154. /* CL/1 execution errors -- data manipulation */
  155.  
  156. #define CEBRAND        -10200L    /* unknown dbms brand specified */
  157. #define CEDBREV        -10201L    /* incompatible DBMS rev levels */
  158. #define CEROWNR        -10202L    /* bad row nr specified */
  159. #define CESUBTBL    -10203L    /* main & subquery FROM names dup table */
  160. #define CEUDFTBL    -10204L    /* undefined table name in database */
  161. #define CEDUPTBL    -10205L /* duplicate table/synonym name in from list */
  162. #define CECATALOG    -10206L    /* error accessing database catalogs */
  163. #define CEDBMS        -10207L    /* untranslated DBMS error */
  164. #define CEALIAS        -10208L    /* undefined alias specified */
  165.  
  166. #define CEUDFALS        -10209L /* table (or alias) not in from list */
  167. #define CEDBOPEN        -10211L /* no database is open */
  168.  
  169. /* CL/1 client only errors */
  170.  
  171. #define CENETIOC    -10628L        /* network I/O error on client */
  172. #define CENETMODE    -10629L        /* network send/recv mode error */
  173. #define CEIOPORT    -10630L        /* error opening I/O port */
  174. #define CEMODEM        -10631L        /* error on modem */
  175. #define CECONNECT    -10632L        /* connection error */
  176. #define CEVERSION    -10634L        /* version incompatibility */
  177. #define CESHUTDOWN    -10635L        /* could not shut down host server */
  178. #define CENOSERVER    -10636L        /* no server */
  179. #define CEATTMDM    -10637L        /* too many modem attempts */
  180. #define CEINIMDM    -10638L        /* could not init modem */
  181. #define CELOGPRM    -10640L        /* invalid login parameters */
  182. #define CEPASPRM    -10641L        /* invalid password parameter */
  183. #define CEAUTLOG    -10642L        /* error during auto-login */
  184. #define CEINIHST    -10643L        /* error initializing host */
  185. #define CEHUPMDM    -10644L        /* error hanging up modem */
  186. #define CEIBMENT    -10645L        /* te not allowed */
  187. #define CENETLD        -10646L        /* ? */
  188. #define CECTRLBRK    -10647L        /* modem contol error */
  189.  
  190. /* CL/1 configuration and internal errors */
  191.  
  192. #define CECONFIG    -10901L    /* CL/1 server configuration problem */
  193. #define CEINTID        -10902L    /* invalid object-id specified */
  194. #define CEINTCTX    -10903L    /* internal - invalid txn for context */
  195. #define CEINTCNT    -10904L    /* internal - count mismatch */
  196. #define CEINTTYP    -10905L    /* unknown data type in DBMS */
  197. #define CEINTTXN    -10906L    /* operation at wrong time in txn */
  198. #define CEINTPARM    -10907L    /* internal parameter error */
  199. #define CEINTDBIF    -10908L    /* dbms interface error */
  200. #define CEINTNET    -10909L    /* network interface error */
  201. #define CEINTOSIF    -10910L    /* opsys interface error */
  202. #define CEUNSPEC    -10911L /* unspecified error */
  203.  
  204.